package com.geek.factory.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.geek.factory.entity.User;
import com.geek.factory.mapper.UserMapper;
import com.geek.factory.vo.PageQueryVO;
import com.geek.factory.vo.UserQueryVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2025-06-19
 */
public interface UserService extends IService<User> {
    User login(UserQueryVO vo);

    Page<User> page(PageQueryVO vo);

    String loginByPhone(String phone);
    User getOneByPhone(String phone);

    boolean upload(MultipartFile excelFile) throws IOException;

    void downloadTemplate(HttpServletResponse response) throws IOException;

}
